import type { BKResponse } from "@/types/Response";
import { ElMessage } from "element-plus";

//编写请求成功后的弹出函数复用
export default function ajaxsuccess(response:BKResponse<any>){
    if (response.code === 200) {
        ElMessage({
          showClose: true,
          message: response.msg,
          type: "success",
        });
      return false
      } else {
        ElMessage({
          showClose: true,
          message: response.msg,
          type: "error",
        });
      }
      return true
}


